package router

import (
	"api_getway/handler/api"
	"api_getway/middleware"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	r.POST("login", api.Login)
	r.POST("add/goods", api.AddGood)

	r.Use(middleware.AuthMiddleware()).POST("askLog", api.AskLog)

	r.Use(middleware.AuthMiddleware()).POST("order", api.Order)
}
